package test.单一职责原则;

public class SRP {
    public static void main(String[] args) {
        AirVehicle airVehicle = new AirVehicle();
        airVehicle.run("飞机");
        RoadVehicle mot = new RoadVehicle();
        mot.run("摩托车");
        WaterVehicle qiant = new WaterVehicle();
        qiant.run("潜艇");
    }
}
